package com.xpgk.mvc.btraining;

import java.util.Date;

import com.jfinal.core.Controller;
import com.jfinal.kit.StrKit;
import com.jfinal.log.Log;
import com.xpgk.mvc.base.BaseValidator;
import com.xpgk.mvc.user.User;
import com.xpgk.tools.ToolDateTime;
import com.xpgk.tools.ToolRandoms;

@SuppressWarnings({ "unused" })
public class TrainingValidator extends BaseValidator {

	private static final Log log = Log.getLog(TrainingValidator.class);


	protected void validate(Controller controller) {
		validateString("training.training_time", 1, 50, "msg", "请填写培训时间!");
		validateString("training.trainings", 1, 50, "msg", "请填写内容!");
		validateString("training.training_result", 1, 50, "msg", "请填写结果!");
		validateString("training.training_personnel", 1, 1000, "msg", "请填写参加人员!");
	}

	
		
	
		
	

	protected void handleError(Controller controller) {
		controller.renderJson();
	}

}
